import {
  Controller,
  Get,
  Post,
  Body,
  Patch,
  Param,
  Delete,
} from '@nestjs/common';
import { DepartmentService } from './department.service';
import { DepartmentCreateDto } from './dto/create-department.dto';

@Controller('department')
export class DepartmentController {
  constructor(private readonly departmentService: DepartmentService) {}
  @Post()
  create(@Body() createDepartmentDto: DepartmentCreateDto) {
    return this.departmentService.create(createDepartmentDto);
  }
}
